package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the SICKROOMTYPE_TABLE database table.
 * 
 */
@Entity
@Table(name="SICKROOMTYPE_TABLE")
@NamedQuery(name="SickroomtypeTable.findAll", query="SELECT s FROM SickroomtypeTable s")
public class SickroomtypeTable implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private long typeid;

	private BigDecimal charge;

	private String typename;

	//bi-directional many-to-one association to SickroomTable
	@OneToMany(mappedBy="sickroomtypeTable")
	private List<SickroomTable> sickroomTables;

	public SickroomtypeTable() {
	}

	public long getTypeid() {
		return this.typeid;
	}

	public void setTypeid(long typeid) {
		this.typeid = typeid;
	}

	public BigDecimal getCharge() {
		return this.charge;
	}

	public void setCharge(BigDecimal charge) {
		this.charge = charge;
	}

	public String getTypename() {
		return this.typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public List<SickroomTable> getSickroomTables() {
		return this.sickroomTables;
	}

	public void setSickroomTables(List<SickroomTable> sickroomTables) {
		this.sickroomTables = sickroomTables;
	}

	public SickroomTable addSickroomTable(SickroomTable sickroomTable) {
		getSickroomTables().add(sickroomTable);
		sickroomTable.setSickroomtypeTable(this);

		return sickroomTable;
	}

	public SickroomTable removeSickroomTable(SickroomTable sickroomTable) {
		getSickroomTables().remove(sickroomTable);
		sickroomTable.setSickroomtypeTable(null);

		return sickroomTable;
	}

}